package com.lbl.service;

import com.lbl.Dao.ContactDao;
import com.lbl.bean.Contact;

import java.util.List;

public class ContactService {
    //1:创建数据层访问对象
    private ContactDao dao = new ContactDao();
    public List<Contact> queryAll() {
        //2:调用全查方法
        return dao.findAll();
    }
}
